package com.eaoa.uc.busvehicle.bo;

import com.eaoa.base.EABaseBusinessObject;
import com.eaoa.dao.bus.BusVehicleDAO;
import com.eaoa.vo.bus.BusVehicle;

public class BusVehicleDeleteBO extends EABaseBusinessObject{
	
	private static BusVehicleDAO vehicleDAO = new BusVehicleDAO();
	private Long vehicleno;
	
	
	public BusVehicleDeleteBO(Long vehicleno) {
		super();
		this.vehicleno = vehicleno;
	}
	protected void performBusinessLogic() {
		BusVehicle po =  (BusVehicle)vehicleDAO.loadAndLock(vehicleno);
		po.setIslock("Y");
		vehicleDAO.update(po);
	}
}
